import request from '@/utils/request'

/**
 * 用户登录
 * @param user
 * @param code
 * @returns {AxiosPromise}
 */
export const reqLogin = (user,code) => request({
  url: `/user/login/${code}`,
  method: 'post',
  data: user
})

/**
 * 发送短信
 * @param userName
 * @returns {AxiosPromise}
 */
export const reqSendMessage = (userName) => request({url: `/user/send/${userName}`, method: 'get'})

